.step{
    display:inline-block;
    background-color:gray;
    height:40px;
    width:90px;
    color:#fff;
    font-weight: bold;
    line-height:40px;
    text-align: center;
    padding:0;
    margin: 2px auto;
    margin-left: 20px;
    position: relative;
    font-size:10px;
}

.step.active{
    background-color:#5A9BA9;
}
.step.active s{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-left: 21px solid #5A9BA9;
    border-bottom: 20px solid transparent;
    right: -20px;
    top: 0px;
}
.step i{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-left: 20px solid #fff;
    border-bottom: 20px solid transparent;
    left: 0px;
    top: 0px;
}
.step s{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-left: 21px solid gray;
    border-bottom: 20px solid transparent;
    right: -20px;
    top: 0px;
}
.step:nth-last-of-type(1) i{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-left: 20px solid #fff;
    border-bottom:20px solid transparent;
    left: 0px;
    top: 0px;
}
.step:nth-last-of-type(1):not(.active) s{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-left: 25px solid gray;
    border-bottom: 20px solid transparent;
    right: -24px;
    top: 0px;
}